import request from '@/utils/request'

// 创建企业信息
export function createSeekUserCompany(data) {
  return request({
    url: '/car/seek-user-company/create',
    method: 'post',
    data: data
  })
}

// 更新企业信息
export function updateSeekUserCompany(data) {
  return request({
    url: '/car/seek-user-company/update',
    method: 'put',
    data: data
  })
}

// 删除企业信息
export function deleteSeekUserCompany(id) {
  return request({
    url: '/car/seek-user-company/delete?id=' + id,
    method: 'delete'
  })
}

// 获得企业信息
export function getSeekUserCompany(id) {
  return request({
    url: '/car/seek-user-company/get?id=' + id,
    method: 'get'
  })
}

// 获得企业信息分页
export function getSeekUserCompanyPage(query) {
  return request({
    url: '/car/seek-user-company/page',
    method: 'get',
    params: query
  })
}

// 导出企业信息 Excel
export function exportSeekUserCompanyExcel(query) {
  return request({
    url: '/car/seek-user-company/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
